<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="Generator" content="EditPlus®">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <title>{$_W['account']['name']}</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="shortcut icon" href="{if !empty($_W['setting']['copyright']['icon'])}{$_W['attachurl']}{$_W['setting']['copyright']['icon']}{else}./resource/images/favicon.ico{/if}" />

    <link rel="stylesheet" href="../addons/kundian_farm/resource/css/common.css">
    <link href="./resource/css/bootstrap.min.css" rel="stylesheet">
    <link href="./resource/css/common.css" rel="stylesheet">

    <script type="text/javascript" src="../addons/kundian_farm/resource/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
    <!--<script type="text/javascript" src="./resource/js/app/util.js"></script>-->
    <!--<script type="text/javascript" src="./resource/js/app/common.min.js"></script>-->

    <script type="text/javascript">
        if(navigator.appName == 'Microsoft Internet Explorer'){
            if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
                alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
            }
        }
        window.sysinfo = {
        {if !empty($_W['uniacid'])}'uniacid': '{$_W['uniacid']}',{/if}
        {if !empty($_W['acid'])}'acid': '{$_W['acid']}',{/if}
        {if !empty($_W['openid'])}'openid': '{$_W['openid']}',{/if}
        {if !empty($_W['uid'])}'uid': '{$_W['uid']}',{/if}
        'isfounder': {if !empty($_W['isfounder'])}1{else}0{/if},
        'family': '{IMS_FAMILY}',
                'siteroot': '{$_W['siteroot']}',
                'siteurl': '{$_W['siteurl']}',
                'attachurl': '{$_W['attachurl']}',
                'attachurl_local': '{$_W['attachurl_local']}',
                'attachurl_remote': '{$_W['attachurl_remote']}',
                'module' : {'url' : '{if defined('MODULE_URL')}{MODULE_URL}{/if}', 'name' : '{if defined('IN_MODULE')}{IN_MODULE}{/if}'},
        'cookie' : {'pre': '{$_W['config']['cookie']['pre']}'},
        'account' : {php echo json_encode($_W['account'])},
        'server' : {'php' : '{php echo phpversion()}'},
        };
    </script>
    <script>var require = { urlArgs: 'v=20170426' };</script>
    <script type="text/javascript" src="./resource/js/app/util.js?v=20180322"></script>
    <script type="text/javascript" src="./resource/js/app/common.min.js?v=20180322"></script>
    <script type="text/javascript" src="./resource/js/require.js"></script>
</head>
<body>
<div class="asidebox clearfix">
    <div class="aside1">
        <a class="logo" href="">
            <img src="{php echo tomedia('headimg_'.$_W['uniacid'].'.jpg')}?time={php echo time()}" class="logoimg" />
            <p style="color: #88929c;">{$_W['account']['name']}</p>
        </a>
        <nav class="aside1_nav">
            <ul>
                <li class="{if $_GPC['cate_id']==1}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/index',array('m'=>'kundian_farm','op'=>'index','version_id'=>$_GPC['version_id'],'cate_id'=>1)}">
                        <i class="fa fa-globe"></i>总览
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==2}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/system',array('m'=>'kundian_farm','op'=>'about_us','version_id'=>$_GPC['version_id'],'cate_id'=>2)}">
                        <i class="fa fa-cog"></i>基本设置
                    </a>
                </li>

                <li class="{if $_GPC['cate_id']==3}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/home',array('m'=>'kundian_farm','op'=>'home_set','version_id'=>$_GPC['version_id'],'cate_id'=>3)}">
                        <i class="fa fa-columns"></i>页面设置
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==4}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/land',array('m'=>'kundian_farm','op'=>'land_type_list','version_id'=>$_GPC['version_id'],'cate_id'=>4)}">
                        <i class="fa fa-globe"></i>土地管理
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==5}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/animal',array('m'=>'kundian_farm','op'=>'index','version_id'=>$_GPC['version_id'],'cate_id'=>5)}">
                        <i class="fa fa-twitter"></i>认养管理
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==6}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/goods',array('m'=>'kundian_farm','op'=>'index','version_id'=>$_GPC['version_id'],'cate_id'=>6)}">
                        <i class="fa fa-shopping-cart"></i>商品管理
                    </a>
                </li>


                <li class="{if $_GPC['cate_id']==7}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/problem',array('m'=>'kundian_farm','op'=>'problem_list','version_id'=>$_GPC['version_id'],'cate_id'=>7)}">
                        <i class="fa fa-question-circle"></i>常见问题
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==8}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/order',array('m'=>'kundian_farm','op'=>'shop_order','version_id'=>$_GPC['version_id'],'cate_id'=>8)}">
                        <i class="fa fa-list-alt"></i>订单管理
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==9}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/user',array('m'=>'kundian_farm','op'=>'index','version_id'=>$_GPC['version_id'],'cate_id'=>9)}">
                        <i class="fa fa-user"></i>用户管理
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==10}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/live',array('m'=>'kundian_farm','op'=>'live_type','version_id'=>$_GPC['version_id'],'cate_id'=>10)}">
                        <i class="fa fa-play-circle"></i>监控管理
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==11}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/vet',array('m'=>'kundian_farm','op'=>'vet_set','version_id'=>$_GPC['version_id'],'cate_id'=>11)}">
                        <i class="fa fa-users"></i>团队管理
                    </a>
                </li>

                <li class="{if $_GPC['cate_id']==12}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/coupon',array('m'=>'kundian_farm','op'=>'shop_coupon','version_id'=>$_GPC['version_id'],'cate_id'=>12)}">
                        <i class="fa fa-tags"></i>营销管理
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==15}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/article',array('m'=>'kundian_farm','op'=>'article_type','version_id'=>$_GPC['version_id'],'cate_id'=>15)}">
                        <i class="fa fa-book"></i>图文资讯
                    </a>
                </li>

                <li class="{if $_GPC['cate_id']==14}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/distribution',array('m'=>'kundian_farm','op'=>'distribution_set','version_id'=>$_GPC['version_id'],'cate_id'=>14)}">
                        <i class="fa fa-th-list"></i>分销中心
                    </a>
                </li>
                <li class="{if $_GPC['cate_id']==13}active1{/if}">
                    <a class="aside1_nav_a1" href="{url 'site/entry/webapp',array('m'=>'kundian_farm','op'=>'brand_set','version_id'=>$_GPC['version_id'],'cate_id'=>13)}">
                        <i class="fa fa-desktop"></i>PC设置
                    </a>
                </li>


            </ul>
        </nav>
    </div>
    <script>
        $(document).on("click", ".child-item", function () {
            if ($(this).hasClass('active')) {
                $(this).removeClass('active');
            } else {
                $(this).addClass('active');
            }
            if ($($(this).parents('li')).find('.sub-item-list').hasClass('active')) {
                $($(this).parents('li')).find('.sub-item-list').removeClass('active');
            } else {
                $($(this).parents('li')).find('.sub-item-list').addClass('active');
            }
        });
        $(document).ready(function () {
            var child = parseInt("");
            $(".sub-item-list").each(function () {
                var flag = false;
                if(parseInt($(this).data('id')) == child){
                    $(this).parents('.sidebar-content').find('.nav-item').addClass('active');
                    $(this).addClass('active').siblings().addClass('active').find('a').removeClass('active');
                }
            });
        });
    </script>
    <!--<div class="aside_user"> </div>-->
</div>
<!--侧边栏end-->
<!--主体start-->
<div class="contentbox">
    <!--主体头start-->
    {if !empty($_W['uid'])}
    <div class="content_head clearfix">
        <div class="content_head_left">数据预览</div>
        <ul class="nav navbar-nav navbar-right " style="float: right !important;margin-right: 45px !important">
            <li class="dropdown">
                <a href="{url 'wxapp/version/home',array('version_id'=>$_GPC['version_id'])}"><i class="wi wi-back color-gray"></i>< 返回系统</a>
            </li>
            <li class="dropdown">
                <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"><i class="wi wi-user color-gray"></i>{$_W['user']['username']} <span class="caret"></span></a>
                <ul class="dropdown-menu color-gray" role="menu">
                    <li>
                        <a href="{url 'user/profile'}" target="_blank"><i class="wi wi-account color-gray"></i> 我的账号</a>
                    </li>
                    <li class="divider"></li>
                    <li><a href="{url 'cloud/upgrade'}" target="_blank"><i class="wi wi-update color-gray"></i> 自动更新</a></li>
                    <li><a href="{url 'system/updatecache'}"><i class="wi wi-cache color-gray"></i> 更新缓存</a></li>
                    <li class="divider"></li>
                    <li>
                        <a href="{url 'user/logout'}"><i class="fa fa-sign-out color-gray"></i> 退出系统</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    {else}
    <div class="collapse navbar-collapse">
        <ul class="nav navbar-nav navbar-right">
            <li class="dropdown"><a href="{php echo url('user/register');}">注册</a></li>
            <li class="dropdown"><a href="{php echo url('user/login');}">登录</a></li>
        </ul>
    </div>
    {/if}
</body>
</html>
